package com.yue.component;

import javax.servlet.AsyncContext;

/**
 * 功能描述: TODO <br/>
 * 创建时间: 2016/11/30<br/>
 *
 * @author QiuYang
 */
public class Mythread implements Runnable {
    private AsyncContext asyncContext;

    public Mythread(AsyncContext asyncContext) {
        this.asyncContext = asyncContext;
    }

    @Override
    public void run() {
        try{
            Thread.sleep(5*1000);
            asyncContext.dispatch("/async.jsp");
        }catch (Exception e){

        }
    }
}
